import 'package:flutter/material.dart';
import 'package:honeypotflutter/publicBussine/bussine_colors.dart';
import 'package:honeypotflutter/publicBussine/bussine_font.dart';
import 'package:honeypotflutter/publicBussine/bussine_image.dart';
import 'package:honeypotflutter/publicBussine/view/bussine_card.dart';
import 'package:honeypotflutter/publicBussine/view/bussine_item.dart';

class DeliverSelectHeader extends StatelessWidget {
  final Function()? action;
  const DeliverSelectHeader({
    super.key,
    this.action,
  });

  @override
  Widget build(BuildContext context) {
    return MGCard(
      children: [
        MGItems(
          padding: EdgeInsets.only(top: 10, bottom: 10),
          leadTitle: "在柜包裹",
          leadStyle: TextStyle(
            fontSize: MGFont.textFont1,
            color: MGColors.text1Color,
            fontWeight: FontWeight.bold,
          ),
          trailingIcon: MGImage.image("public_next"),
        )
      ],
      action: action,
    );
  }
}
